#pragma once

#include "types.h"

// Interrupt flags

//enum
//{
//	IFF_1,
//	IFF_MODE1,
//	IFF_MODE2,
//	
//	IFF2,
//	IFF_EI,
//	IFF_HALT
//}

// Bit flags

enum Flags
{
	S_FLAG  = 0x80,	//Sign bit                bit 7    COND
	Z_FLAG  = 0x40,	//Zero bit                bit 6    COND
	X5_FLAG = 0x20,	//Not Used bit            bit 5
	H_FLAG  = 0x10,	//Half Carry bit          bit 4    NO
	X3_FLAG = 0x8,	//Not Used bit            bit 3
	P_FLAG  = 0x4,	//Parity bit	          bit 2    COND
	V_FLAG  = 0x4,	//Overflow bit            bit 2    COND
	N_FLAG  = 0x2,	//Add/Subtract bit        bit 1    NO
	C_FLAG  = 0x1	//Carry bit               bit 0    COND
};

// Default register values

const word SP_INIT = 0x2400;
const byte F_INIT  = 0x02;

